﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace NXDAL.Migrations
{
    public partial class assc : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "Login",
                columns: table => new
                {
                    Uid = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    Uname = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    Password = table.Column<string>(type: "nvarchar(max)", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_Login", x => x.Uid);
                });

            migrationBuilder.CreateTable(
                name: "YHJ",
                columns: table => new
                {
                    Yid = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    Yname = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    SM = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    Isdeldet = table.Column<bool>(type: "bit", nullable: false),
                    Levsl = table.Column<int>(type: "int", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_YHJ", x => x.Yid);
                });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "Login");

            migrationBuilder.DropTable(
                name: "YHJ");
        }
    }
}
